<template>
  <div class="contents">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="全部状态" name="first" />
      <el-tab-pane label="待审核" name="second" />
      <el-tab-pane label="已完成" name="third" />
      <el-tab-pane label="已关闭" name="fourth" />
    </el-tabs>
    <el-row :gutter="5">
      <el-col :span="5">
        <el-select v-model="formData.stores" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
      </el-col>
      <el-col :span="5">
        <el-date-picker
          v-model="formData.date"
          end-placeholder="结束日期"
          range-separator="_"
          start-placeholder="开始日期"
          style="width: 200px"
          type="daterange"
        />
      </el-col>
      <el-col :span="6">
        <el-input
          v-model="formData"
          class="input-with-select"
          placeholder="输入客户名称/客户账号/源订单号"
        >
          <el-button slot="append" icon="el-icon-search" />
        </el-input>
      </el-col>
    </el-row>
    <el-table :data="modifyData" style="width: 100%; margin-top: 8px">
      <el-table-column label="变更单号" prop="date" />
      <el-table-column label="变更后金额" prop="name" />
      <el-table-column label="客户" prop="address" />
      <el-table-column label="客户张号" prop="address" />
      <el-table-column label="源订单" prop="address" />
      <el-table-column label="订单状态" prop="address" />
    </el-table>
    <el-pagination
      background
      layout="total, prev, pager, next, sizes, jumper"
      :page-size="10"
      :page-sizes="[10, 20, 30, 40]"
      style="text-align: right"
      :total="0"
    />
  </div>
</template>

<script>
  export default {
    data() {
      return {
        activeName: 'first',
        formData: {
          stores: '默认库房',
          date: '',
          desc: '',
        },
        options: [
          {
            value: '0',
            label: '默认库房',
          },
          {
            value: '1',
            label: '冻货库房',
          },
        ],
        modifyData: [],
      }
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event)
      },
    },
  }
</script>

<style lang="scss" scoped>
  .contents {
    padding: 0 20px;
  }
</style>
